<?php
	// this is about as basic as it could be
	// you would need to add error trapping code and
	// also a mechanism within the loop to read more
	// data if its greater than 8192
	$bytesIn = "";
	while(!0)
	{	
		$bytesIn  =  fread(STDIN,8192);
		if(strlen($bytesIn) > 0)
		{
			$GLOBALS['HTTP_RAW_POST_DATA'] = $bytesIn; 
			break;
		}
	}
	chdir("phpSource\\amfphp\\");
	require_once("amfphp/gateway.php");
 ?>
